package com.feng.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.PathVariable;

import com.feng.entity.Journal;
import com.feng.entity.User;

public interface IUserService {

	List<User> selectAllUsers();
	List<User> selectAllByPage(@PathVariable int pageNum);
	User findUser(String name,String upwd) throws Exception;
	Integer insertUser(User user) throws Exception;
	boolean ckUserInvalid(HttpServletRequest request) throws Exception;
	
	User getCurrentUser(HttpServletRequest request);
	
	void setUserSync(HttpServletRequest request,String sync) throws Exception;
}
